package com.aspose.cells;

import java.util.Iterator;

class zsm implements Iterator {
   private Row a;
   private zahl b;
   private int c;
   private Cell d;

   public zsm(Row var1) {
      this.a = var1;
      this.b = var1.a.a(-1, -1, false);
   }

   public zsm(Row var1, int var2, int var3) {
      this.a = var1;
      this.b = var1.a.b(var2, var3, false);
   }

   public boolean hasNext() {
      if (this.b == null) {
         return false;
      } else {
         this.d = null;
         this.c = this.b.a();
         return this.c > -1;
      }
   }

   public Object next() {
      if (this.d != null) {
         return this.d;
      } else {
         this.d = new Cell(this.a, this.c);
         return this.d;
      }
   }

   public void remove() {
      throw new UnsupportedOperationException();
   }
}
